<?php
/**
 * @var \Ke\Web\Context $this
 * @var \Ke\Web\Web     $web
 * @var string          $content
 */

?>
<div class="ui fixed inverted menu">
	<div class="ui container">
		<a class="header item" href="<?php print $web->uri(''); ?>">CSService M</a>
		<?php if (!isset($this->user) || $this->user->isNew()) { ?>
		<?php } else { ?>
		<a class="item" href="<?php print $web->uri('curd/user'); ?>">用户</a>
		<a class="item" href="<?php print $web->uri('curd/server'); ?>">服务器</a>
		<a class="item" href="<?php print $web->uri('curd/project'); ?>">项目</a>
		<a class="item" href="<?php print $web->uri('curd/command'); ?>">命令</a>
		<div class="ui simple dropdown item">
			任务管理 <i class="dropdown icon"></i>
			<div class="menu">
				<a class="item" href="<?php print $web->uri('task'); ?>">任务</a>
				<a class="item" href="<?php print $web->uri('task/log'); ?>">任务日志</a>
			</div>
		</div>
		<a href="<?php print $web->uri('logout'); ?>" class="right item"><i class="power icon"></i>注销</a>
		<?php } ?>
	</div>
</div>
